
function validateUrl(str){
	
	var regex=/^(http[s]?:\/\/){0,1}(www\.){0,1}[a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,5}[\.]{0,1}/;
	var result = new RegExp(regex);
	return result.test(str)
}